home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-04-19 | 1.0 KB | 53 lines |
- # GRAB Graph Layout and Browser System
- #
- # Copyright (c) 1989, Tera Computer Company
-
- OBJS= allocobj.o reclaim.o allochblk.o misc.o alloc.o
-
- SRCS= allocobj.c reclaim.c allochblk.c misc.c alloc.c
-
- CFLAGS= -O -DNOSTATS
-
- #Set SPECIALCFLAGS to -O for M68K and VAX, and to nothing for SPARC,
- #to avoid the -O flag on routines that don't work with it.
- SPECIALCFLAGS = -O -DNOSTATS
-
- all: gc.o gc++.o
-
- $(OBJS): runtime.h
-
- gc.a: $(OBJS)
- ar ru gc.a $(OBJS)
- ranlib gc.a
-
- gc.o: $(OBJS)
- -ld -r -o gc.o $(OBJS)
- gc++.o: $(OBJS) gcmem.o
- -ld -r -o gc++.o $(OBJS) gcmem.o
-
-
- #allocobj.c doesn't like optimization
- allocobj.o: allocobj.c
- cc -c ${SPECIALCFLAGS} allocobj.c
-
- clean:
- rm -f test gc.o gc.a test.o cons.o $(OBJS)
-
- test.o: cons.h test.c
-
- cons.o: cons.h cons.c
-
- test: test.o cons.o gc.o
- cc -o test test.o cons.o gc.o
- gcmem.o: gcmem.c
- gcc -c -g gcmem.c
- gctest.o: gctest.c
- g++ -c -g gctest.c
- gctest: gctest.o gc++.o
- g++ -o gctest gctest.o gc++.o
-
- shar:
- makescript -o gc.shar README Makefile runtime.h ${SRCS} test.c cons.c cons.h
-
-
-